<?php session_start();
/**
* @package		Parents@School.
* @copyright	Copyright (C) 2008 Kristof Beckers. All rights reserved.
* @Version		1.0
* @license		GNU/GPL, see LICENSE.php
**/

include ("../../include/config.php");
require_once ("../../include/db.php");
include ("../../include/header.php");

if(isset($_SESSION['myusername'])){
	if ($_SESSION['admin'] == "$adminid") {
	
$id = $_GET['id'];
$user = $_GET['username'];
$klas = $_GET['klas'];	
?><head>
<link rel="stylesheet" href="../../css/template_css.css" type="text/css"/> 
</head>
<body>
<div align="center"><img src="<?php echo "../$logo" ; ?>" />
</div>
<p>&nbsp;</p>
<div align="center">
  <p>&nbsp;</p>
  <p><a href="users.php"><img src="../../images/users.png" width="128" height="128" border="0"></a></p>
  <p>Pas de gegevens aan van deze gebruiker</p>
</div>
<p> <br />
</p>
<form id="form1" name="form1" method="post" action="users_edit_process_values.php">
  <table width="100%" border="0" align="center" class="moduletable-latest1">
    <tr>
	<td width="25%"> ID: </td>
      <td><?php echo $id ; ?> </td>
    </tr>
	<tr>
	<td width="25%"> Gebruikersnaam: </td>
      <td><input name="username" type="text" id="username" value="<?php echo $user ; ?>" /> <input name="id" type="hidden" value="<?php echo $id ; ?>" /></td>
    </tr>
    <tr>
	<td width="25%"> klas: </td>
      <td>
	    <label>
		<?php 
		$sql12 = "SELECT DISTINCT Klas FROM $tbvak ORDER BY Klas";
$result12=mysql_query($sql12);
?>
  <select name="klas" id="klas">
  <option value="<?php echo $klas ; ?>"/><?php echo $klas ; ?></option>
  <option></option>
  <?php
while ($row12 = mysql_fetch_array($result12)) {
   $klas12 = $row12['Klas'];
   ?>
<option value="<?php echo $klas12 ; ?>"><?php echo $klas12 ; ?></option>
<?php } ?>
  </select>
  </label>
	  </td>
    </tr>
    <tr>
      <td><input name="Update" type="submit" id="Update" value="Update" /></td>
    </tr>
  </table>
</form>
<p>&nbsp;</p>
<p>
  <?php
	}
	}
	?>
